package com.social.serviceImpl;

import com.social.dao.PostRoleMapper;
import com.social.pojo.PostRoleKey;
import com.social.service.PostRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PostRoleServiceImpl implements PostRoleService {
    @Autowired
    private PostRoleMapper postRoleMapper;

    @Override
    public int deleteByPrimaryKey(PostRoleKey key) {
        int status = postRoleMapper.deleteByPrimaryKey(key);
        return status;
    }

    @Override
    public int insert(PostRoleKey record) {
        int status = postRoleMapper.insert(record);
        return status;
    }

    @Override
    public int insertSelective(PostRoleKey record) {
        int status = postRoleMapper.insertSelective(record);
        return status;
    }
}